# -*- coding: utf-8 -*-
# @Time    : 2021/9/16 16:27
# @Author  : BrandonGT
# @FileName: employee.py

class Employee(object):
    """定义一个Employee的类，接收 姓名 和 年薪"""
    def __init__(self, first_name, last_name, annual_salary):
        self.first_name = first_name
        self.last_name = last_name
        self.annual_salary = annual_salary

    def raise_salary(self, salary=5000):
        """增加年薪，默认一次为5000"""
        self.annual_salary += salary

    def show_salary(self):
        """返回年薪"""
        return self.annual_salary
